<template>
    <div class="shoppingtrolley">
        <pagetitle></pagetitle>
        <div class="shoppingtrolleyBox">
            <div class="shoppingtrolleyNav">
                <div
                    class="shoppingtrolleyNavItem"
                    :class="shoppingtrolleyIndex == index ? 'selectshoppingtrolleyNavItem' : ''"
                    v-for="(item, index) in shoppingtrolleyNav"
                    :key="index"
                >
                    {{ item }}
                </div>
            </div>
            <el-form :inline="true" :model="formInline" class="demo-form-inline" size="mini">
                <el-form-item label="创建时间">
                    <el-select v-model="formInline.region" placeholder="创建时间">
                        <el-option label="区域一" value="shanghai"></el-option>
                        <el-option label="区域二" value="beijing"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="">
                    <el-input v-model="formInline.user" placeholder="请输入关键字" suffix-icon="el-icon-search"></el-input>
                </el-form-item>
            </el-form>
            <div class="dataListTitle">
                <div class="dataListTitleLeft">
                    <div class="item"><el-checkbox v-model="checked">全部</el-checkbox></div>
                    <div class="item itemts">商品信息</div>
                </div>
                <div class="dataListTitleRight">
                    <div class="item">商品类型</div>
                    <div class="item">订单类型</div>
                    <div class="item">单价</div>
                    <div class="item">数量</div>
                    <div class="item itemmony">应付金额</div>
                    <div class="item">操作</div>
                </div>
            </div>
            <div class="dataListBox">
                <div class="dataListItem" v-for="item in 2" :key="item">
                    <div class="supplier"><el-checkbox v-model="checked">供应商：重庆三峡农夫科技有限公司</el-checkbox></div>
                    <div class="dataListItemContent">
                        <div class="goodsinfoBox">
                            <div class="goodsinfo">
                                <el-checkbox v-model="checked"></el-checkbox>
                                <el-image
                                    class="commodityimg"
                                    src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
                                    fit="cover"
                                ></el-image>
                                <div>
                                    <div class="goodsNameBox">
                                        <div class="goodsName">正宗纽荷尔脐橙赣南品种新鲜橙子9斤当季水果冰糖果冻甜橙整箱10</div>
                                        <div class="goodsdescribe">果径：75mm（含）-80mm(不含)；净含量：3斤</div>
                                    </div>
                                    <div class="goodsTag">
                                        <el-button type="text" size="mini" class="goodsTagBtn">绿色食品</el-button>
                                        <el-button type="text" size="mini" class="goodsTagBtn">奉节脐橙</el-button>
                                    </div>
                                </div>
                            </div>
                            <div class="goodsinfoRight">
                                <div class="goodsInfoItem">农场产品</div>
                                <div class="goodsInfoItem">采购</div>
                                <div class="goodsInfoItem">￥20.81</div>
                                <div class="goodsNum">
                                    <div>-</div>
                                    <input type="text" v-model="num" />
                                    <div>+</div>
                                </div>
                                <div class="goodsInfoItem goodsInfoItemmony">￥20.81</div>
                                <div class="goodsRightBtn">
                                    <div>移入收藏夹</div>
                                    <div>删除</div>
                                </div>
                            </div>
                        </div>

                        <div class="bottomMsg">
                            <div class="bottomMsgItem">
                                <div class="names">运输服务费</div>
                                <div class="bottomMsgItemRight">
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony">￥20.81</div>
                                    <div class="mony1"></div>
                                </div>
                            </div>
                            <div class="bottomMsgItem">
                                <div class="names">保险服务费</div>
                                <div class="bottomMsgItemRight">
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony1"></div>
                                    <div class="mony">￥20.81</div>
                                    <div class="mony1"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="pageBottom">
                <div class="pageBottomLeft">
                    <el-checkbox v-model="checked">全部</el-checkbox>
                    <div class="funBtn funBtn1">删除</div>
                    <div class="funBtn">移入收藏夹</div>
                </div>
                <div class="pageBottomRight">
                    <div class="selectNum">已选商品 <span>3</span>件</div>
                    <div class="totalmony">合计(不含运费)： <span>0.00</span></div>
                    <el-button type="info" size="mini" round disabled>结算</el-button>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            shoppingtrolleyNav: ["全部", "农场产品", "服务市场", "解决方案", "大数据"],
            shoppingtrolleyIndex: 0,
            formInline: {},
            checked: false,
            num: 1,
        };
    },
};
</script>
<style lang="scss" scoped>
.shoppingtrolleyBox {
    background: #ffffff;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    .shoppingtrolleyNav {
        padding-bottom: 10px;
        border-bottom: 1px solid #cccccc;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .shoppingtrolleyNavItem {
            margin-right: 30px;
            font-size: 14px;
            color: #252b3a;
            cursor: pointer;
            &:hover {
                color: #23b14d;
            }
        }
        .selectshoppingtrolleyNavItem {
            color: #23b14d;
            position: relative;
            &::after {
                position: absolute;
                content: "";
                width: 100%;
                height: 2px;
                background: #23b14d;
                left: 0;
                bottom: -10px;
            }
        }
    }
    .demo-form-inline {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 10px;
        margin-right: -10px;
    }
    .dataListTitle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 30px;
        .dataListTitleLeft {
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }
        .dataListTitleRight {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .item {
            font-size: 14px;
            color: #252b3a;
            width: 60px;
            text-align: center;
        }
        .itemts {
            margin-right: 285px;
            margin-left: 155px;
        }
        .itemmony {
            margin-right: 92px;
        }
    }
    .dataListBox {
        .dataListItem {
            margin-top: 20px;
            .dataListItemContent {
                background: #f5f5f5;
                border-radius: 15px;
                padding: 20px;
                margin-top: 10px;
                .goodsinfoBox {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;

                    .goodsinfo {
                        display: flex;
                        justify-content: flex-start;
                        align-items: flex-start;
                        margin-right: 15px;
                        .commodityimg {
                            width: 80px;
                            height: 80px;
                            margin: 0 10px;
                            border-radius: 5px;
                            // margin-left: -40px;
                        }
                        .goodsNameBox {
                            display: flex;
                            justify-content: center;
                            align-items: flex-start;
                            height: 65px;
                            .goodsName {
                                font-size: 12px;
                                color: #252b3a;
                                width: 200px;
                                margin-right: 30px;
                            }
                            .goodsdescribe {
                                width: 185px;
                                font-size: 12px;
                                color: #666666;
                            }
                        }
                        .goodsTagBtn {
                            padding: 0;
                        }
                    }
                    .goodsNum {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        div {
                            width: 14px;
                            height: 25px;
                            background: #f5f5f5;
                            border: 1px solid #cccccc;
                            color: #aaaaaa;
                            text-align: center;
                            line-height: 20px;
                            cursor: pointer;
                            &:hover {
                                color: #333333;
                            }
                        }
                        input {
                            text-align: center;
                            height: 25px;
                            width: 42px;
                            font-size: 12px;
                            color: #333333;
                            border: 1px solid #444444;
                        }
                    }
                    .goodsRightBtn {
                        // padding-right: 50px;
                        div {
                            font-size: 12px;
                            color: #252b3a;
                            margin-bottom: 20px;
                            cursor: pointer;
                        }
                    }
                    .goodsinfoRight {
                        display: flex;
                        justify-content: space-between;
                        align-items: flex-start;
                        width: 100%;
                        .goodsInfoItem {
                            width: 60px;
                            text-align: center;
                        }
                        .goodsInfoItemmony {
                            margin-right: 100px;
                            font-size: 12px;
                            color: #23b14d;
                            width: 60px;
                            text-align: center;
                        }
                    }
                }
                .bottomMsg {
                    padding-top: 20px;
                    border-top: 1px solid #cccccc;
                    margin-top: 20px;
                    .bottomMsgItem {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        line-height: 24px;

                        // padding-right: 190px;
                        .bottomMsgItemRight {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            // padding-right: 30px;
                            width: 100%;
                            .mony1 {
                                opacity: 0;
                                width: 60px;
                                text-align: center;
                            }
                        }
                        .names {
                            font-size: 14px;
                            color: #252b3a;
                            white-space: nowrap;
                            padding-left: 115px;
                            margin-right: 360px;
                        }
                        .mony {
                            font-size: 12px;
                            color: #23b14d;
                            width: 60px;
                            text-align: center;
                            margin-right: 100px;
                        }
                    }
                }
            }
        }
    }
    .pageBottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        border-top: 1px solid #cccccc;
        margin-top: 20px;
        margin-bottom: -20px;
        position: relative;
        &::before,
        &::after {
            position: absolute;
            width: 30px;
            height: 70px;
            border-top: 1px solid #cccccc;
            content: "";
        }
        &::before {
            left: -30px;
            top: -1px;
        }
        &::after {
            right: -30px;
            top: -1px;
        }
        .pageBottomLeft {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            font-size: 14px;
            color: #252b3a;
            .funBtn {
                margin-right: 20px;
                cursor: pointer;
            }
            .funBtn1 {
                margin-left: 40px;
            }
        }
        .pageBottomRight {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            font-size: 14px;
            color: #252b3a;
            .selectNum {
                margin-right: 60px;

                span {
                    font-size: 20px;
                    color: #23b14d;
                }
            }
            .totalmony {
                margin-right: 10px;
                span {
                    font-size: 22px;
                    color: #23b14d;
                }
            }
        }
    }
}
</style>
<style>
.shoppingtrolleyBox .dataListTitle .item .el-checkbox__label,
.shoppingtrolleyBox .dataListBox .dataListItem .supplier .el-checkbox__label {
    color: #252b3a;
}
</style>
